package com.example.Controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by Jason on 2017/4/25.
 */
@RestController
public class ComputeController {

    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public int add(@RequestParam(value = "a") int a, @RequestParam(value = "b") int b) {
        return a + b;
    }
}
